package com.ruoyi.functiontest.service.impl;

import java.util.List;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.functiontest.mapper.InterchangeMileageStatTestMapper;
import com.ruoyi.functiontest.domain.InterchangeMileageStatTest;
import com.ruoyi.functiontest.service.IInterchangeMileageStatTestService;
import com.ruoyi.common.utils.StringUtils;

/**
 * 互通里程实测数据测试Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class InterchangeMileageStatTestServiceImpl implements IInterchangeMileageStatTestService 
{
    @Autowired
    private InterchangeMileageStatTestMapper interchangeMileageStatTestMapper;

    /**
     * 查询互通里程实测数据测试
     * 
     * @param id 互通里程实测数据测试主键
     * @return 互通里程实测数据测试
     */
    @Override
    public InterchangeMileageStatTest selectInterchangeMileageStatTestById(Long id)
    {
        return interchangeMileageStatTestMapper.selectInterchangeMileageStatTestById(id);
    }

    /**
     * 查询互通里程实测数据测试列表
     * 
     * @param interchangeMileageStatTest 互通里程实测数据测试
     * @return 互通里程实测数据测试
     */
    @Override
    public List<InterchangeMileageStatTest> selectInterchangeMileageStatTestList(InterchangeMileageStatTest interchangeMileageStatTest)
    {
        return interchangeMileageStatTestMapper.selectInterchangeMileageStatTestList(interchangeMileageStatTest);
    }

    /**
     * 新增互通里程实测数据测试
     * 
     * @param interchangeMileageStatTest 互通里程实测数据测试
     * @return 结果
     */
    @Override
    public int insertInterchangeMileageStatTest(InterchangeMileageStatTest interchangeMileageStatTest)
    {
        return interchangeMileageStatTestMapper.insertInterchangeMileageStatTest(interchangeMileageStatTest);
    }

    /**
     * 修改互通里程实测数据测试
     * 
     * @param interchangeMileageStatTest 互通里程实测数据测试
     * @return 结果
     */
    @Override
    public int updateInterchangeMileageStatTest(InterchangeMileageStatTest interchangeMileageStatTest)
    {
        return interchangeMileageStatTestMapper.updateInterchangeMileageStatTest(interchangeMileageStatTest);
    }

    /**
     * 批量删除互通里程实测数据测试
     * 
     * @param ids 需要删除的互通里程实测数据测试主键
     * @return 结果
     */
    @Override
    public int deleteInterchangeMileageStatTestByIds(Long[] ids)
    {
        return interchangeMileageStatTestMapper.deleteInterchangeMileageStatTestByIds(ids);
    }

    /**
     * 删除互通里程实测数据测试信息
     * 
     * @param id 互通里程实测数据测试主键
     * @return 结果
     */
    @Override
    public int deleteInterchangeMileageStatTestById(Long id)
    {
        return interchangeMileageStatTestMapper.deleteInterchangeMileageStatTestById(id);
    }

    @Override
    public boolean hasChildById(Long id)
    {
        return interchangeMileageStatTestMapper.hasChildById(id) > 0;
    }
}
